package com.water.quality.testing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.water.quality.testing.dao.WaterData;
import org.apache.ibatis.annotations.Mapper;

/**
 * 水质数据 mapper 层
 */
@Mapper
public interface WaterDataMapper extends BaseMapper<WaterData> {
    /**
     * 根据观测点 id 查找最后一个插入该观测点的水质数据
     * @param observationPointId  观测点 id
     */
    WaterData findTopByObservationPointIdOrderByIdDesc(Long observationPointId);

}
